import Mock from "mockjs";

export function getEdgeDetail(option) {
  console.log(option);
  let data = paramToObj(option.url);
  if (data.id) {
    return edgeDetail;
  }
  let name = data.relationName;
  let type = data.type;
  let property = data.property;
  let sourceId = data.sourceId;
  let targetId = data.sourceId;
  return {
    code: 200,
    message: "ok",
    data: {
      id: 11,
      name,
      type,
      property,
      sourceName: sourceId,
      targetName: targetId,
    },
  };
}
